﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using MyDes;
public partial class singlelogin : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
       
        
    }

    protected void Button1_Click(object sender, EventArgs e)
    {

        My_Des zxdDes = new My_Des();
        zxdDes.EncryptStr = TextBox1.Text;
        zxdDes.MyDesKey = "tiger11!";
        zxdDes.DesEncrypt();
        TextBox2.Text = zxdDes.MyDesStr;

    }


    protected void Button2_Click(object sender, EventArgs e)
    {

        My_Des zxdDes = new My_Des();
        zxdDes.DecryptStr = TextBox2.Text;
        zxdDes.MyDesKey = "tiger11!";
        zxdDes.DesDecrypt();
        
        TextBox3.Text = zxdDes.MyDesStr;
    }
}
